package vue;

import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;

import roms.depot;


public abstract class VueVideo{

	/**
	 * offsets
	 */
private int marqueurVram ;
/**
 * Memoire
 */

private byte [] vram ;
private byte [] oam ;
	
	
	public byte read(int address) {
		
		if(address >= 0x8000 && address < 0xA000) {
			return vram[address - marqueurVram];
		}
	
		if(address >= 0xFE00 && address < 0xFEA0) {
			return oam[address - 0xFE00];
		}
		return 0;
	}
	
	public void write(int address, byte towrite) {
	
	
		if(address >= 0x8000 && address < 0xA000) {
			vram[address - marqueurVram] = towrite;
		}
		
		if(address >= 0xFE00 && address < 0xFEA0) {
			oam[address - 0xFE00] = towrite;
			
		}
	}


	
	
	
}